package com.ch.home.bean;

import java.util.Date;

/**
 * 用户评论
 * Created by CHEN on 2019/8/13.
 * OK
 */
public class UserComment {
    private Integer commentId;//评论id
    private Integer userId;//发评用户id
    private Integer foreignId;//资源分享者id
    private Integer parentCommentId;//上级评论id
    private Date time;//时间
    private String content;//评论内容
    private Integer likeNum;//点赞数
    private Integer status;//评论状态：0=已删除，1=正常
    private Integer typeId;//评论类型

    public UserComment() {
    }

    public UserComment(Integer commentId, Integer userId, Integer foreignId, Integer parentCommentId, Date time, String content, Integer likeNum, Integer status, Integer typeId) {
        this.commentId = commentId;
        this.userId = userId;
        this.foreignId = foreignId;
        this.parentCommentId = parentCommentId;
        this.time = time;
        this.content = content;
        this.likeNum = likeNum;
        this.status = status;
        this.typeId = typeId;
    }



    @Override
    public String toString() {
        return "UserComment{" +
                "commentId=" + commentId +
                ", userId=" + userId +
                ", foreignId=" + foreignId +
                ", parentCommentId=" + parentCommentId +
                ", time=" + time +
                ", content='" + content + '\'' +
                ", likeNum=" + likeNum +
                ", status=" + status +
                ", typeId=" + typeId +
                '}';
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getForeignId() {
        return foreignId;
    }

    public void setForeignId(Integer foreignId) {
        this.foreignId = foreignId;
    }

    public Integer getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(Integer parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
}
